<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/flexible.js"></script>
    <script src="../js/echarts.min.js"></script>
    <style>
        .box {
            width: 7.5rem;
            height: 5rem;
        }
    </style>
</head>

<body>
    <div class="box" id='box'></div>
    <script>
        const MyEcharts = echarts.init(document.getElementById('box'))
        const option = {
            title: { //标题设置属性
                text: '成绩', //标题显示的
                link: 'http:www.baidu.com', //提供超链接
                textStyle: { //设置标题属性
                    color: '#333',
                    fontSize: 50
                },
            },
            xAxis: { //直角系中的x轴
                type: 'category', //类目轴
                data: ['用户1', '用户2', '用户2']
            },
            yAxis: { //直角系中的y轴
                type: 'value' //数据轴
            },
            series: [{ //系列列表，给Y轴提供数据
                data: [50, 100, 150],
                type: 'bar', //类型图线形图line  bar树状图   pie圆图
                name: '语文' //data中数据属于语文
            }]
        };
        MyEcharts.setOption(option)
    </script>

</body>

</html>

</html>